SW_I2C
 
 
 Bean SW_I2C
 
SW emulated I2C using two I/O pins.

Typical usage of the bean in user's code.

Typical Usage:

Required bean name is "EI2C1".

The typical usage of this bean shows how to send data into slave. If the SendChar method returns ERR_OK, the transmission was successful.

MAIN.C

#define Slave 0x80

void main(void)
{

    :
    
  /* Set slave address */
  (void)EI2C1_SelectSlave(Slave);
    
  /* Send character */
  while(EI2C1_SendChar(65) != ERR_OK);

    :

}

For more about typical usage of the bean code please refer to the page Bean Code Typical Usage.


Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.